//
//  NSLayoutConstraint+IBDesignable.m
//  SJZBusiness
//
//  Created by 位立志 on 2018/5/7.
//  Copyright © 2018年 bwton. All rights reserved.
//

#import "NSLayoutConstraint+IBDesignable.h"

@implementation NSLayoutConstraint (IBDesignable)
#define kScreenProportion         (CGRectGetWidth([[UIScreen mainScreen] bounds]) / 414.0)

- (void)setAdapterScreen:(BOOL)adapterScreen{
    adapterScreen = adapterScreen;
    if (adapterScreen){
        self.constant = self.constant * kScreenProportion;
        
    }
}

- (BOOL)adapterScreen{
    return YES;
}

@end
